package com.rado.tf.gui.view.dashboard.impl;

import com.rado.tf.gui.view.common.View;
import com.rado.tf.gui.view.dashboard.IDashboardPresenter;
import com.rado.tf.gui.view.dashboard.IDashboardView;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * Created by parado on 14.03.14.
 */
@Component(DashboardPresenterImpl.BEAN_NAME)
public class DashboardPresenterImpl implements IDashboardPresenter
{
   public static final String BEAN_NAME = "dashboardPresenter";

   @Resource
   private ApplicationEventPublisher applicationEventPublisher;

   @Resource
   private IDashboardView dashboardView;

   @Override
   public View getViewDisplay()
   {
      return dashboardView;
   }

   @Override
   @PostConstruct
   public void bind()
   {
   }

   @Override
   public void onApplicationEvent(ApplicationEvent applicationEvent)
   {

   }
}
